﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChanpinList.aspx.cs" Inherits="WEALTH.Manager.Customer.ChanpinList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link href="../css/admin.global.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.content.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../js/jquery.utils.js"></script>
    <link href="../jBox/Skins/Green/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="../js/admin.js"></script>
    <script type="text/javascript" src="../js/gridview_setting.js"></script>
    <script type="text/javascript">

        // 设置标题
        Index.SetTitle('产品列表');

        //        var issubmit;
        //        function setConfirm(btn) {
        //            if (issubmit) {
        //                return true;
        //            } else {
        //                var submit = function (v, h, f) {
        //                    if (v == 'ok') {
        //                        issubmit = true;
        //                        $(btn).click();
        //                    }
        //                }
        //                $.jBox.confirm("确定要更改用户状态吗?", "提示", submit);
        //                return false;
        //            }
        //        }

        // 清空所有检索条件
        function cleartext() {
            jQuery("#drpIssuanceAgency").get(0).selectedIndex = 0;
            jQuery("#drpClass").get(0).selectedIndex = 0;
            jQuery("#drpInvestmentIndustry").get(0).selectedIndex = 0;
            jQuery("#drpExpectedReturnOnTime").get(0).selectedIndex = 0;
            jQuery("#drpDeadline").get(0).selectedIndex = 0;
            jQuery("#drpState").get(0).selectedIndex = 0;
            jQuery("#drpTZMK").get(0).selectedIndex = 0;
            jQuery("#txt_Key").val("");
            return true;
        }
    </script>
</head>
<body>
    <div class="container">
        <form id="Form1" runat="server">
        <div class="location">
            当前位置：产品管理 -&gt; 产品列表</div>
        <div class="blank10">
        </div>
        <div class="search block">
            <div class="h">
                <span class="icon-sprite icon-magnifier"></span>
                <h3>
                    快速搜索</h3>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <div class="search-bar">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="line-height: 30px; height: 30px;">
                                <td>
                                    <label class="txt-green">
                                        产品状态：</label>
                                    <asp:DropDownList name="drpState" ID="drpState" runat="server">
                                        <asp:ListItem Value="">全部</asp:ListItem>
                                        <asp:ListItem Value="1">在售</asp:ListItem>
                                        <asp:ListItem Value="2">结束</asp:ListItem>
                                    </asp:DropDownList>
                                    <label class="txt-green">
                                        发行机构：</label>
                                    <asp:DropDownList name="drpIssuanceAgency" ID="drpIssuanceAgency" runat="server">
                                        <asp:ListItem Value="">全部</asp:ListItem>
                                        <asp:ListItem Value="1">爱建信托</asp:ListItem>
                                        <asp:ListItem Value="2">安信信托</asp:ListItem>
                                        <asp:ListItem Value="3">北方信托</asp:ListItem>
                                        <asp:ListItem Value="4">渤海信托</asp:ListItem>
                                        <asp:ListItem Value="5">北京信托</asp:ListItem>
                                        <asp:ListItem Value="6">百瑞信托</asp:ListItem>
                                        <asp:ListItem Value="7">长安信托</asp:ListItem>
                                        <asp:ListItem Value="8">重庆信托</asp:ListItem>
                                        <asp:ListItem Value="9">东莞信托</asp:ListItem>
                                        <asp:ListItem Value="10">大业信托</asp:ListItem>
                                        <asp:ListItem Value="11">方正东亚信托</asp:ListItem>
                                        <asp:ListItem Value="12">国联信托</asp:ListItem>
                                        <asp:ListItem Value="13">国民信托</asp:ListItem>
                                        <asp:ListItem Value="14">甘肃信托</asp:ListItem>
                                        <asp:ListItem Value="15">国投信托</asp:ListItem>
                                        <asp:ListItem Value="16">国元信托</asp:ListItem>
                                        <asp:ListItem Value="17">华澳信托</asp:ListItem>
                                        <asp:ListItem Value="18">华宝信托</asp:ListItem>
                                        <asp:ListItem Value="19">华宸信托</asp:ListItem>
                                        <asp:ListItem Value="20">华能信托</asp:ListItem>
                                        <asp:ListItem Value="21">湖南信托</asp:ListItem>
                                        <asp:ListItem Value="22">华信信托</asp:ListItem>
                                        <asp:ListItem Value="23">华融信托</asp:ListItem>
                                        <asp:ListItem Value="24">华润信托</asp:ListItem>
                                        <asp:ListItem Value="25">华鑫信托</asp:ListItem>
                                        <asp:ListItem Value="26">杭州信托</asp:ListItem>
                                        <asp:ListItem Value="27">金谷信托</asp:ListItem>
                                        <asp:ListItem Value="28">吉林信托</asp:ListItem>
                                        <asp:ListItem Value="29">江苏信托</asp:ListItem>
                                        <asp:ListItem Value="30">江西信托</asp:ListItem>
                                        <asp:ListItem Value="31">建信信托</asp:ListItem>
                                        <asp:ListItem Value="32">交银信托</asp:ListItem>
                                        <asp:ListItem Value="33">昆仑信托</asp:ListItem>
                                        <asp:ListItem Value="34">陆家嘴信托</asp:ListItem>
                                        <asp:ListItem Value="35">平安信托</asp:ListItem>
                                        <asp:ListItem Value="36">四川信托</asp:ListItem>
                                        <asp:ListItem Value="37">山东信托</asp:ListItem>
                                        <asp:ListItem Value="38">上海信托</asp:ListItem>
                                        <asp:ListItem Value="39">山西信托</asp:ListItem>
                                        <asp:ListItem Value="40">陕西国投</asp:ListItem>
                                        <asp:ListItem Value="41">苏州信托</asp:ListItem>
                                        <asp:ListItem Value="42">天津信托</asp:ListItem>
                                        <asp:ListItem Value="43">五矿信托</asp:ListItem>
                                        <asp:ListItem Value="44">外贸信托</asp:ListItem>
                                        <asp:ListItem Value="45">西部信托</asp:ListItem>
                                        <asp:ListItem Value="46">新华信托</asp:ListItem>
                                        <asp:ListItem Value="47">厦门信托</asp:ListItem>
                                        <asp:ListItem Value="48">新时代信托</asp:ListItem>
                                        <asp:ListItem Value="49">兴业信托</asp:ListItem>
                                        <asp:ListItem Value="50">西藏信托</asp:ListItem>
                                        <asp:ListItem Value="51">粤财信托</asp:ListItem>
                                        <asp:ListItem Value="52">英大信托</asp:ListItem>
                                        <asp:ListItem Value="53">云南信托</asp:ListItem>
                                        <asp:ListItem Value="54">中诚信托</asp:ListItem>
                                        <asp:ListItem Value="55">中海信托</asp:ListItem>
                                        <asp:ListItem Value="56">中航信托</asp:ListItem>
                                        <asp:ListItem Value="57">紫金信托</asp:ListItem>
                                        <asp:ListItem Value="58">浙金信托</asp:ListItem>
                                        <asp:ListItem Value="59">中粮信托</asp:ListItem>
                                        <asp:ListItem Value="60">中融信托</asp:ListItem>
                                        <asp:ListItem Value="61">中泰信托</asp:ListItem>
                                        <asp:ListItem Value="62">中铁信托</asp:ListItem>
                                        <asp:ListItem Value="63">中投信托</asp:ListItem>
                                        <asp:ListItem Value="64">中信信托</asp:ListItem>
                                        <asp:ListItem Value="65">中原信托</asp:ListItem>
                                        <asp:ListItem Value="66">泰新股权投资</asp:ListItem>
                                    </asp:DropDownList>
                                    <label class="txt-green">
                                        产品期限：</label>
                                    <asp:DropDownList name="drpDeadline" ID="drpDeadline" runat="server">
                                        <asp:ListItem Value="">全部</asp:ListItem>
                                        <asp:ListItem Value="1">1年以内</asp:ListItem>
                                        <asp:ListItem Value="2">1-2年</asp:ListItem>
                                        <asp:ListItem Value="3">2-3年</asp:ListItem>
                                        <asp:ListItem Value="4">3年以上</asp:ListItem>
                                    </asp:DropDownList>
                                    <label class="txt-green">
                                        年化收益：</label>
                                    <asp:DropDownList name="drpExpectedReturnOnTime" ID="drpExpectedReturnOnTime" runat="server">
                                        <asp:ListItem Value="">全部</asp:ListItem>
                                        <asp:ListItem Value="1">8%以内</asp:ListItem>
                                        <asp:ListItem Value="2">8-10%</asp:ListItem>
                                        <asp:ListItem Value="3">10-12%</asp:ListItem>
                                        <asp:ListItem Value="4">12%以上</asp:ListItem>
                                    </asp:DropDownList>
                                    <label class="txt-green">
                                        投资起点：</label>
                                    <asp:DropDownList name="drpTZMK" ID="drpTZMK" runat="server">
                                        <asp:ListItem Value="">全部</asp:ListItem>
                                        <asp:ListItem Value="1">100万以内</asp:ListItem>
                                        <asp:ListItem Value="2">100-300万</asp:ListItem>
                                        <asp:ListItem Value="3">300万以上</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr style="line-height: 30px; height: 30px;">
                                <td>
                                    <label class="txt-green">
                                        投资领域：</label>
                                    <asp:DropDownList name="drpInvestmentIndustry" ID="drpInvestmentIndustry" runat="server"
                                        Style="width: 140px;">
                                        <asp:ListItem Value="">全部</asp:ListItem>
                                        <asp:ListItem Value="1">金融市场</asp:ListItem>
                                        <asp:ListItem Value="2">基础设施</asp:ListItem>
                                        <asp:ListItem Value="3">工商企业</asp:ListItem>
                                        <asp:ListItem Value="4">政府融资平台</asp:ListItem>
                                        <asp:ListItem Value="5">房地产</asp:ListItem>
                                        <asp:ListItem Value="6">保障房</asp:ListItem>
                                        <asp:ListItem Value="7">其他</asp:ListItem>
                                    </asp:DropDownList>
                                    <label class="txt-green">
                                        产品类型：</label>
                                    <asp:DropDownList name="drpClass" ID="drpClass" runat="server">
                                        <asp:ListItem Value="">全部</asp:ListItem>
                                        <asp:ListItem Value="73746443898191872">证券类</asp:ListItem>
                                        <asp:ListItem Value="72339069014638592">贷款类</asp:ListItem>
                                        <asp:ListItem Value="72620543991349248">股权类</asp:ListItem>
                                        <asp:ListItem Value="72902018968059904">权益类</asp:ListItem>
                                        <asp:ListItem Value="73183493944770560">组合类</asp:ListItem>
                                        <asp:ListItem Value="73464968921481216">其他类</asp:ListItem>
                                    </asp:DropDownList>
                                    <label class="txt-green">
                                        产品关键字：</label>
                                    <asp:TextBox ID="txt_Key" runat="server" Style="width: 200px;"></asp:TextBox>
                                </td>
                                <td align="right">
                                    <span class="btn-ctl-span">
                                        <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="btnSearch_Click" /></span>
                                    <span class="btn-ctl-span">
                                        <input type="button" id="Button2" onclick="cleartext();" value="清空" /></span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="blank10">
        </div>
        <div class="block">
            <div class="h">
                <span class="icon-sprite icon-list"></span>
                <h3>
                    产品列表</h3>
                <div class="bar">
                    <a class="btn-lit" href="javascript:Index.Open('Customer/AddChanpin.aspx');"><span>新增</span></a>
                    <span class="btn-ctl-span">
                        <asp:Button ID="btnSubmit" runat="server" Text="删除" OnClick="btnSubmit_Click" /></span>
                </div>
            </div>
            <div class="tl corner">
            </div>
            <div class="tr corner">
            </div>
            <div class="bl corner">
            </div>
            <div class="br corner">
            </div>
            <div class="cnt-wp">
                <div class="cnt">
                    <asp:GridView ID="gvproList" runat="server" CssClass="data-table" border="0" CellPadding="0"
                        Width="100%" EnableTheming="True" AllowSorting="True" AutoGenerateColumns="False"
                        OnRowDataBound="gvproList_RowDataBound" AllowPaging="True" OnPageIndexChanging="gvproList_PageIndexChanging"
                        OnSorting="gvproList_Sorting" GridLines="None" OnDataBound="gvproList_DataBound">
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="CPID" DataTextField="CPID" HeaderText="ID"
                                NavigateUrl="../Customer/EditChanpin.aspx" DataNavigateUrlFormatString="../Customer/EditChanpin.aspx?CPID={0}"
                                SortExpression="listID" ItemStyle-CssClass="l" ItemStyle-Width="2%" />
                            <asp:BoundField DataField="CPName" SortExpression="CPName" ItemStyle-Width="10%"
                                ItemStyle-CssClass="l" HeaderText="产品名称" />
                            <asp:BoundField DataField="CPFXJG" SortExpression="CPFXJG" ItemStyle-Width="5%" ItemStyle-CssClass="c"
                                HeaderText="发行机构" />
                            <asp:BoundField DataField="CPTZLY" SortExpression="CPTZLY" ItemStyle-Width="5%" ItemStyle-CssClass="c"
                                HeaderText="投资领域" />
                            <asp:BoundField DataField="CPType" SortExpression="CPType" ItemStyle-Width="5%" ItemStyle-CssClass="c"
                                HeaderText="产品类型" />
                            <asp:BoundField DataField="CPQD" SortExpression="CPQD" ItemStyle-Width="5%" ItemStyle-CssClass="c"
                                HeaderText="投资起点" />
                            <asp:BoundField DataField="CPQX" SortExpression="CPQX" ItemStyle-Width="5%" ItemStyle-CssClass="c"
                                HeaderText="投资期限" />
                            <asp:BoundField DataField="CPSY" SortExpression="CPSY" ItemStyle-Width="5%" ItemStyle-CssClass="c"
                                HeaderText="年化收益" />
                            <asp:BoundField DataField="CPStauts" SortExpression="CPStauts" ItemStyle-Width="5%"
                                ItemStyle-CssClass="c" HeaderText="产品状态" />
                            <asp:BoundField DataField="CPISALL" SortExpression="CPISALL" ItemStyle-Width="5%"
                                ItemStyle-CssClass="c" HeaderText="是否精选" />
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkdelete" runat="server" Checked="false" />
                                </ItemTemplate>
                                <ItemStyle Width="2%"></ItemStyle>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <script type="text/javascript">
                var pagerUrl = 'Customer/ChanpinList.aspx?pageIndex={0}';
                Pager.Output(pagerUrl,<%=pageSize %>, <%=pageIndex %>, <%=pageCount %>, <%=recordCount %>); //(urlFormat, pageSize, pageIndex, pageCount, recordCount)
                </script>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
